##!/usr/bin/env python

#  This program is free software.
#  You can redistribute it and/or modify it under the terms of the GNU General Public License
#  as published by the Free Software Foundation.
#  That is either version 2 of the License, or if you prefer any later version.

class ServerInterface:
    # might have to import streamer in here.

    def shell(self):
        run = True 
        command = ''
        while run:
            print '>>',
            command = raw_input()
            if command == 'play':
                self.playHandle()
            elif command == 'stop':
                self.stopHandle()
            elif command == 'exit':
                run = False
            else:
                print 'Invalid command'

            """event handelers"""
    def playHandle(self):
        print 'Starting Stream'
        

    def stopHandle(self):
        print 'Stopping Stream'

class ServerController:
    interface = ServerInterface()
    interface.shell()
## should have its own event handler to handle events from

    # def __init__(self):
        # an instance of interface
        # an instance of streamer

    # event handler for messages between severcontroller and client controller
    # streamer object. method

